home *** CD-ROM | disk | FTP | other *** search
/ Champak 112 / jogo-disk-112.iso / Games / ophelias_diary_2_episode_2.swf / scripts / DefineButton2_708 / BUTTONCONDACTION on(release, releaseOutside).as < prev   
Text File  |  2010-07-14  |  764b  |  34 lines

  1. on(release, releaseOutside){
  2.    stopDrag();
  3.    if(_droptarget eq "/Sc17/Animatiques/Puit/DropZone")
  4.    {
  5.       if(eval("/Variables:PositionTrou") == 1 and eval("/Variables:ChandellierPris") == 1)
  6.       {
  7.          tellTarget("/Sc17/Animatiques/Puit")
  8.          {
  9.             gotoAndStop("Briquet");
  10.          }
  11.          set("/Variables:ChandellierAllume",1);
  12.          gotoAndStop(1);
  13.       }
  14.       else if(eval("/Variables:Parle") == 0)
  15.       {
  16.          tellTarget("/Voix")
  17.          {
  18.             gotoAndStop("Useless");
  19.             play();
  20.          }
  21.       }
  22.    }
  23.    else if(eval("/Variables:Parle") == 0)
  24.    {
  25.       tellTarget("/Voix")
  26.       {
  27.          gotoAndStop("NoUse");
  28.          play();
  29.       }
  30.    }
  31.    _X = 70;
  32.    _Y = 314;
  33. }
  34.